package com.avo.ramcache.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class CacheConfig {

    @Value("${ram.cache.dbName}")
    public String dbName;

    private static CacheConfig instance;

    @PostConstruct
    public void init() {
        instance = this;
    }

    public static CacheConfig getInstance() {
        return instance;
    }
}
